//
//  CardView.h
//  MyWallet
//
//  Created by 小肥羊 on 15/7/15.
//  Copyright (c) 2015年 小肥羊. All rights reserved.
//
//  卡

#import <UIKit/UIKit.h>
#import "TotalAssets.h"

@class CardView;
@protocol CardViewDelegate <NSObject>

- (void)saveMoney:(CardView *)cardView;
- (void)drawMoney:(CardView *)cardView;
- (void)activationCard:(CardView *)cardView;
- (void)cancellationCard:(CardView *)cardView;

@end


@interface CardView : UIView

@property (retain, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UILabel *cardNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;
@property (weak, nonatomic) IBOutlet UIButton *activationButton;

@property (nonatomic, retain) id <CardViewDelegate> delegate;      /**< 卡代理 */

@property (nonatomic) BOOL isActivation;


- (void)upCard:(CardModel *)card;
- (void)setMoney:(float)money;

@end
